package com.lt.exam.zhuhemoshi;

/**
 * @author LT
 * @version 1.0
 * @PackageName com.lt.exam
 * @ClassName Component
 * @Description to do
 * @date 2021/11/30 11:09
 */
public abstract class Component {
    public String name;

    public Component(String name) {
        this.name = name;
    }

    public abstract void add(Component c) throws Exception;
    public abstract void remove(Component c) throws Exception;
    public abstract Component getChild(int i) throws Exception;
    public abstract void print();
    public abstract void work();
}
